package top.chenyaohua.http;

public class RequestContextHandler {

    private static final ThreadLocal<HttpRequest> http = new ThreadLocal<>();

    protected static void setHttpRequest(HttpRequest httpRequest){
        http.set(httpRequest);
    }

    public static HttpRequest getHttpRequest(){
        return http.get();
    }

    protected static void removeHttpRequest(){
        http.remove();
    }

}
